package cn.enilu.flash.bean.entity.task;

import cn.enilu.flash.bean.entity.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

@Entity(name = "t_help_classify")
@Table(appliesTo = "t_help_classify", comment = "任务分类")
@Data
@EntityListeners(AuditingEntityListener.class)
public class Classify extends BaseEntity {
    @Column(columnDefinition = "VARCHAR(16) comment '分类名称'")
    private String name;
    @Column(columnDefinition = "bigint comment '图片id'")
    private Long idFile;
}
